package com.example.commons.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author lk
 * @since 2024-08-24
 */
@TableName("system_department")
@ApiModel(value = "SystemDepartment对象", description = "部门表")
@EqualsAndHashCode(callSuper = true)
@Data
public class SystemDepartment extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("部门id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("父id")
    private Long parentId;

    @ApiModelProperty("部门状态")
    private String status;

    @ApiModelProperty("描述")
    private String remark;

}
